package com.usian.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.mapper.ShopMapper;
import com.usian.mapper.UserMapper;
import com.usian.pojo.shop.Shop;
import com.usian.pojo.user.User;
import com.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public Integer decideRidByUid(Integer uid) {
        return userMapper.decideRidByUid(uid);
    }

    @Override
    public List<Shop> listByStateLt3() {
        return shopMapper.listByStateLt3();
    }

    @Override
    public List<Shop> listByStateGt5() {
        return shopMapper.listByStateGt5();
    }
}
